package com.fan.analysis.module.show.domain.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 通话记录参数
 *
 * @author fan
 * @date 2021/10/18 18:44
 **/
@Data
public class CallRecordDto {

    @ApiModelProperty("参数电话号码")
    @NotBlank(message = "参数电话号码不能为空")
    @Length(max = 255, message = "参数电话号码最多255个字符")
    private String phoneNum;

    @ApiModelProperty("开始时间，格式：yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;


    @ApiModelProperty("结束时间，格式：yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
}
